
/**
 * @brief    Defines design constraints.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2025.04.11
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Input/Design/DesignBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DCONSTRData : public DesignBase {
  SG::DataStructure::Common::Id m_RID = 0;         ///<
  SG::DataStructure::Common::Real m_LALLOW = 0.0;  ///<
  SG::DataStructure::Common::Real m_UALLOW = 0.0;  ///<
  SG::DataStructure::Common::Real m_LOWFQ = 0.0;   ///<
  SG::DataStructure::Common::Real m_HIGHFQ = 0.0;  ///<
  SG::DataStructure::Common::I64 m_DTYPE = 0;      ///<
  SG::DataStructure::Common::Id m_domainId = 0;    ///<
};

///< @brief 判断数据是否相等
DECLSPEC bool operator==(const DCONSTRData& val1, const DCONSTRData& val2);

SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
